package com.xzj.spring.entity;

/**
 * @ProjectName: SpringDemo
 * @Package: com.xzj
 * @ClassName: NamedThreadLocal
 * @Author: xzj
 * @Description: 用来标记对象是否在创建中
 * @Date: 2022/7/8 16:45
 * @Version: 1.0
 */
public class NamedThreadLocal<T> extends ThreadLocal<T> {

    private final String name;


    public NamedThreadLocal(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return this.name;
    }

}
